<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="../../js/vue.js"></script>
</head>
<body>
<!--v-pre
  跳过编译没有指令语法和插值语法的标签,提高性能


-->
  <div id="root">
    <h2 v-pre>v-pre很简单</h2>
    n的值:<h2>{{n}}</h2>
    <button @click="n++">点击n+1</button>
  </div>

  <script type="text/javascript">
    var vm = new Vue({
      el:'#root',
      data:{
        n:1
      }
    });
  </script>
</body>
</html>
